// pages/shopping/shopping.js
Page({

  data: {
    shopping: []
  },

  onLoad: function (options) {
    let that = this;

    wx.request({
      url: 'http://120.79.28.228:5000/main_key',
      success(res){
        // console.log(res.data)
        that.setData({
          shopping: res.data
        })
        console.log(res.data)
      },
      fail(err){
        console.log(err)
      }
    })
  },
})